<{layout name="admin/layout/login" /}>
<div class="container" data-page="login">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登陆</h3>
                </div>
                <div class="panel-body">
                    <form id="login" role="form">
                        <fieldset>
                            <div class="form-group">
                                <input class="form-control" placeholder="email" name="email" type="email" autofocus  v-model="email">
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="password" name="password" type="password"  v-model="password" @keyup.enter="submit()">
                            </div>
                            <div v-if="count > 3">
                                <div class="form-group">
                                    <input class="form-control" placeholder="captcha" name="captcha" type="text" v-model="captcha" @keyup.enter="submit()">
                                </div>
                                <div class="form-group">
                                    <img id="captcha" class="thumbnail captcha" src="<{:url('admin/auth/captcha')}>" @click="refresh()" alt="点我刷新验证码" />
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="btn btn-lg btn-success btn-block" @click="submit()">登陆</div>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>